package com.aspose.cells;

class zcv {
   private byte[] e = null;
   private byte[] f;
   int a;
   byte b;
   byte c;
   private zcb g;
   private int h;
   private short i;
   byte d = -1;

   byte[] a() {
      return this.e;
   }

   void a(byte[] var1) {
      this.e = var1;
   }

   zcv(zcb var1, byte[] var2, int var3) {
      this.g = var1;
      this.f = var2;
      this.b = 0;
      this.c = -2;
      this.a = var3;
      switch(this.g.n()) {
      case 2:
         this.h = 61466;
         this.i = 980;
         break;
      case 3:
         this.h = 61467;
         this.i = 534;
         break;
      case 4:
         this.h = 61468;
         this.i = 1346;
         break;
      case 5:
         this.h = 61469;
         this.i = 1130;
         break;
      case 6:
         this.h = 61470;
         this.i = 1760;
         break;
      case 7:
         this.h = 61471;
         this.i = 1960;
         break;
      default:
         throw new IllegalArgumentException("Unsupported image format.");
      }

   }

   zcv(zcb var1) {
      this.g = var1;
   }

   void a(zcv var1) {
      if (var1.f == null) {
         this.f = null;
      } else {
         this.f = new byte[var1.f.length];
         System.arraycopy(var1.f, 0, this.f, 0, this.f.length);
      }

      this.b = var1.b;
      this.c = var1.c;
      this.a = var1.a;
      this.h = var1.h;
      this.i = var1.i;
      if (var1.e != null) {
         this.e = new byte[var1.e.length];
         System.arraycopy(var1.e, 0, this.e, 0, var1.e.length);
      } else {
         this.e = null;
      }

   }

   long b() {
      if (this.e() == null) {
         return 0L;
      } else {
         long var1 = (long)(this.f() + this.e().length);
         return var1;
      }
   }

   int c() {
      return this.h;
   }

   void a(int var1) {
      this.h = var1;
   }

   short d() {
      return this.i;
   }

   void a(short var1) {
      this.i = var1;
   }

   byte[] e() {
      return this.f;
   }

   void b(byte[] var1) {
      this.f = var1;
   }

   int f() {
      if (this.e() == null) {
         return 0;
      } else {
         int var1 = 0;
         if (this.e != null) {
            var1 += 16;
         }

         if (this.g()) {
            var1 += 50;
         } else {
            var1 += 17;
         }

         return var1;
      }
   }

   boolean g() {
      switch(this.g.n()) {
      case 2:
      case 3:
      case 4:
         return true;
      default:
         return false;
      }
   }
}
